package com.test.javafaq_portal.mapper;

import com.test.javafaq_portal.entity.Answer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* <p>
    *  Mapper 接口
    * </p>
*
* @author test.com
* @since 2025-04-11
*/
@Repository
public interface AnswerMapper extends BaseMapper<Answer> {

    //根据 quest_id查询所有答案及回答的所有评论的方法
    List<Answer> findAnswersWithCommentByQuestionId(Integer qid);
}
